home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 November: Tool Chest / Dev.CD Nov 00 TC Disk 1.toast / Sample Code / Networking / PCCardNetworkSample / MyRegisterPort.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-09-28  |  1.5 KB  |  75 lines  |  [TEXT/CWIE]

  1. /*
  2.     File:        MyRegisterPort.h
  3.  
  4.     Contains:    
  5.  
  6.     Written by:     
  7.  
  8.     Copyright:    Copyright © 1998-1999 by Apple Computer, Inc., All Rights Reserved.
  9.  
  10.                 You may incorporate this Apple sample source code into your program(s) without
  11.                 restriction. This Apple sample source code has been provided "AS IS" and the
  12.                 responsibility for its operation is yours. You are not permitted to redistribute
  13.                 this Apple sample source code as "Apple sample source code" after having made
  14.                 changes. If you're going to re-distribute the source, we require that you make
  15.                 it clear in the source that the code was descended from Apple sample source
  16.                 code, but that you've made changes.
  17.  
  18.     Change History (most recent first):
  19.                 8/16/1999    Karl Groethe    Updated for Metrowerks Codewarror Pro 2.1
  20.                 
  21.  
  22. */
  23.  
  24. #ifndef __MYREGISTERPORT__
  25. #define __MYREGISTERPORT__
  26.  
  27.  
  28. #include <NameRegistry.h>
  29.  
  30. #if PRAGMA_ONCE
  31. #pragma once
  32. #endif
  33.  
  34. #ifdef __cplusplus
  35. extern "C" {
  36. #endif
  37.  
  38. #if PRAGMA_IMPORT
  39. #pragma import on
  40. #endif
  41.  
  42. #if PRAGMA_STRUCT_ALIGN
  43.     #pragma options align=mac68k
  44. #elif PRAGMA_STRUCT_PACKPUSH
  45.     #pragma pack(push, 2)
  46. #elif PRAGMA_STRUCT_PACK
  47.     #pragma pack(2)
  48. #endif
  49.  
  50.  
  51. #define kMaxServices    20
  52. extern void     OfflineThePort(RegEntryID *deviceRef);
  53. extern void         RegisterThePort(RegEntryID *cardRef);
  54.  
  55.  
  56.  
  57. #if PRAGMA_STRUCT_ALIGN
  58.     #pragma options align=reset
  59. #elif PRAGMA_STRUCT_PACKPUSH
  60.     #pragma pack(pop)
  61. #elif PRAGMA_STRUCT_PACK
  62.     #pragma pack()
  63. #endif
  64.  
  65. #ifdef PRAGMA_IMPORT_OFF
  66. #pragma import off
  67. #elif PRAGMA_IMPORT
  68. #pragma import reset
  69. #endif
  70.  
  71. #ifdef __cplusplus
  72. }
  73. #endif
  74.  
  75. #endif  // __MYREGISTERPORT__